<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div>
	<jsp:useBean id="complaintBean" scope="application"
		class="com.immunology.bean.ComplaintBean" />
	<h2>Список скарг</h2>
	<form action="RedirectComplaintParameterServlet" method="post">
		<c:forEach items="${complaintBean.complaintList}"
			var="syndromeMap">

			<h2>
				Синдром:
				<c:out value="${syndromeMap.key}"></c:out>
			</h2>
			<c:forEach items="${syndromeMap.value}" var="complaintType">
				<ul>
					<li><h3>
							Тип скарги:
							<c:out value="${complaintType.key}" />
						</h3>
						<table class="table">
							<c:forEach items="${complaintType.value}" var="complaint">
								<tr>
									<td class="nameColumn">
										<ul>
											<li><c:out value="${complaint.name}" /></li>
										</ul></td>
									<td class="submit"><input type="submit"
										name="${complaint.id}" value="Редагувати"></td>
								</tr>
							</c:forEach>
						</table>
					</li>
				</ul>
			</c:forEach>
		</c:forEach>
	</form>
</div>